<form nz-form [formGroup]="filterForm" class="ant-advanced-search-form">
  <div nz-form-item nz-row>
    <div nz-form-label nz-col [nzSpan]="7">
      <label nz-form-item-required>开发方案代码</label>
    </div>
    <div nz-col [nzSpan]="12" nz-form-control [nzValidateStatus]="filterForm.controls.code" nzHasFeedback>
      <nz-input
        formControlName="code"
        [nzType]="'text'"
        [nzPlaceHolder]="'开发方案代码'"
        [ngModel]="entity.code"
        [nzSize]="'large'">
      </nz-input>
      <div nz-form-explain *ngIf="filterForm.controls.code.dirty&&filterForm.controls.code.hasError('required')">Please
        input your code!
      </div>
    </div>
  </div>
  <div nz-form-item nz-row>
    <div nz-form-label nz-col [nzSpan]="7">
      <label nz-form-item-required>中文名称</label>
    </div>
    <div nz-col [nzSpan]="12" nz-form-control [nzValidateStatus]="filterForm.controls.code" nzHasFeedback>
      <nz-input
        formControlName="name"
        [nzType]="'text'"
        [nzPlaceHolder]="'中文名称'"
        [ngModel]="entity.name"
        [nzSize]="'large'">
      </nz-input>
      <div nz-form-explain *ngIf="filterForm.controls.name.dirty&&filterForm.controls.name.hasError('required')">Please
        input your name!
      </div>
    </div>
  </div>
  <div nz-form-item nz-row>
    <div nz-form-label nz-col [nzSpan]="7">
      <label nz-form-item-required>描述</label>
    </div>
    <div nz-col [nzSpan]="12" nz-form-control [nzValidateStatus]="filterForm.controls.code" nzHasFeedback>
      <nz-input
        formControlName="des"
        [nzType]="'text'"
        [nzPlaceHolder]="'描述'"
        [ngModel]="entity.des"
        [nzSize]="'large'">
      </nz-input>
      <div nz-form-explain *ngIf="filterForm.controls.des.dirty&&filterForm.controls.des.hasError('required')">Please
        input your des!
      </div>
    </div>
  </div>
  <div nz-form-item nz-row>
    <div nz-form-label nz-col [nzSpan]="7">
      <label nz-form-item-required>方案类型</label>
    </div>
    <div nz-col [nzSpan]="12" nz-form-control [nzValidateStatus]="filterForm.controls.code" nzHasFeedback>
      <nz-input
        formControlName="type"
        [nzType]="'text'"
        [nzPlaceHolder]="'方案类型'"
        [ngModel]="entity.type"
        [nzSize]="'large'">
      </nz-input>
      <div nz-form-explain *ngIf="filterForm.controls.type.dirty&&filterForm.controls.type.hasError('required')">Please
        input your type!
      </div>
    </div>
  </div>
  <div nz-form-item nz-row>
    <div nz-form-label nz-col [nzSpan]="7">
      <label nz-form-item-required>创建人</label>
    </div>
    <div nz-col [nzSpan]="12" nz-form-control [nzValidateStatus]="filterForm.controls.code" nzHasFeedback>
      <nz-input
        formControlName="createdBy"
        [nzType]="'text'"
        [nzPlaceHolder]="'创建人'"
        [ngModel]="entity.createdBy"
        [nzSize]="'large'">
      </nz-input>
      <div nz-form-explain
           *ngIf="filterForm.controls.createdBy.dirty&&filterForm.controls.createdBy.hasError('required')">Please
        input your createdBy!
      </div>
    </div>
  </div>
  <div nz-form-item nz-row>
    <div nz-form-label nz-col [nzSpan]="7">
      <label nz-form-item-required>创建日期/时间</label>
    </div>
    <div nz-col [nzSpan]="12" nz-form-control [nzValidateStatus]="filterForm.controls.code" nzHasFeedback>
      <nz-input
        formControlName="createDate"
        [nzType]="'text'"
        [nzPlaceHolder]="'创建日期/时间'"
        [ngModel]="entity.createDate"
        [nzSize]="'large'">
      </nz-input>
      <div nz-form-explain
           *ngIf="filterForm.controls.createDate.dirty&&filterForm.controls.createDate.hasError('required')">Please
        input your createDate!
      </div>
    </div>
  </div>
  <div nz-form-item nz-row>
    <div nz-form-label nz-col [nzSpan]="7">
      <label nz-form-item-required>修改人</label>
    </div>
    <div nz-col [nzSpan]="12" nz-form-control [nzValidateStatus]="filterForm.controls.code" nzHasFeedback>
      <nz-input
        formControlName="modifiedBy"
        [nzType]="'text'"
        [nzPlaceHolder]="'修改人'"
        [ngModel]="entity.modifiedBy"
        [nzSize]="'large'">
      </nz-input>
      <div nz-form-explain
           *ngIf="filterForm.controls.modifiedBy.dirty&&filterForm.controls.modifiedBy.hasError('required')">Please
        input your modifiedBy!
      </div>
    </div>
  </div>
  <div nz-form-item nz-row>
    <div nz-form-label nz-col [nzSpan]="7">
      <label nz-form-item-required>修改日期</label>
    </div>
    <div nz-col [nzSpan]="12" nz-form-control [nzValidateStatus]="filterForm.controls.code" nzHasFeedback>
      <nz-input
        formControlName="modifiedDate"
        [nzType]="'text'"
        [nzPlaceHolder]="'修改日期'"
        [ngModel]="entity.modifiedDate"
        [nzSize]="'large'">
      </nz-input>
      <div nz-form-explain
           *ngIf="filterForm.controls.modifiedDate.dirty&&filterForm.controls.modifiedDate.hasError('required')">Please
        input your modifiedDate!
      </div>
    </div>
  </div>
  <div nz-form-item nz-row>
    <div nz-form-label nz-col [nzSpan]="7">
      <label nz-form-item-required>状态</label>
    </div>
    <div nz-col [nzSpan]="12" nz-form-control [nzValidateStatus]="filterForm.controls.code" nzHasFeedback>
      <nz-input
        formControlName="status"
        [nzType]="'text'"
        [nzPlaceHolder]="'状态'"
        [ngModel]="entity.status"
        [nzSize]="'large'">
      </nz-input>
      <div nz-form-explain *ngIf="filterForm.controls.status.dirty&&filterForm.controls.status.hasError('required')">
        Please
        input your status!
      </div>
    </div>
  </div>
  <div nz-form-item nz-row>
    <div nz-form-label nz-col [nzSpan]="7">
      <label nz-form-item-required>数据产生机构,</label>
    </div>
    <div nz-col [nzSpan]="12" nz-form-control [nzValidateStatus]="filterForm.controls.code" nzHasFeedback>
      <nz-input
        formControlName="operationOrgCode"
        [nzType]="'text'"
        [nzPlaceHolder]="'数据产生机构,'"
        [ngModel]="entity.operationOrgCode"
        [nzSize]="'large'">
      </nz-input>
      <div nz-form-explain
           *ngIf="filterForm.controls.operationOrgCode.dirty&&filterForm.controls.operationOrgCode.hasError('required')">
        Please
        input your operationOrgCode!
      </div>
    </div>
  </div>
  <div nz-form-item nz-row>
    <div nz-form-label nz-col [nzSpan]="7">
      <label nz-form-item-required>数据分区键</label>
    </div>
    <div nz-col [nzSpan]="12" nz-form-control [nzValidateStatus]="filterForm.controls.code" nzHasFeedback>
      <nz-input
        formControlName="dataowner"
        [nzType]="'text'"
        [nzPlaceHolder]="'数据分区键'"
        [ngModel]="entity.dataowner"
        [nzSize]="'large'">
      </nz-input>
      <div nz-form-explain
           *ngIf="filterForm.controls.dataowner.dirty&&filterForm.controls.dataowner.hasError('required')">Please
        input your dataowner!
      </div>
    </div>
  </div>
  <div nz-form-item nz-row>
    <div nz-form-label nz-col [nzSpan]="7">
      <label nz-form-item-required>数据归属</label>
    </div>
    <div nz-col [nzSpan]="12" nz-form-control [nzValidateStatus]="filterForm.controls.code" nzHasFeedback>
      <nz-input
        formControlName="companyId"
        [nzType]="'text'"
        [nzPlaceHolder]="'数据归属'"
        [ngModel]="entity.companyId"
        [nzSize]="'large'">
      </nz-input>
      <div nz-form-explain
           *ngIf="filterForm.controls.companyId.dirty&&filterForm.controls.companyId.hasError('required')">Please
        input your companyId!
      </div>
    </div>
  </div>
  <div nz-form-item nz-row>
    <div nz-form-label nz-col [nzSpan]="7">
      <label nz-form-item-required>归档基准日期</label>
    </div>
    <div nz-col [nzSpan]="12" nz-form-control [nzValidateStatus]="filterForm.controls.code" nzHasFeedback>
      <nz-input
        formControlName="archiveBaseDate"
        [nzType]="'text'"
        [nzPlaceHolder]="'归档基准日期'"
        [ngModel]="entity.archiveBaseDate"
        [nzSize]="'large'">
      </nz-input>
      <div nz-form-explain
           *ngIf="filterForm.controls.archiveBaseDate.dirty&&filterForm.controls.archiveBaseDate.hasError('required')">
        Please
        input your archiveBaseDate!
      </div>
    </div>
  </div>
  <div nz-form-item nz-row>
    <div nz-form-label nz-col [nzSpan]="7">
      <label nz-form-item-required>记录版本号，每次修改记录时加1</label>
    </div>
    <div nz-col [nzSpan]="12" nz-form-control [nzValidateStatus]="filterForm.controls.code" nzHasFeedback>
      <nz-input
        formControlName="versionId"
        [nzType]="'text'"
        [nzPlaceHolder]="'记录版本号，每次修改记录时加1'"
        [ngModel]="entity.versionId"
        [nzSize]="'large'">
      </nz-input>
      <div nz-form-explain
           *ngIf="filterForm.controls.versionId.dirty&&filterForm.controls.versionId.hasError('required')">Please
        input your versionId!
      </div>
    </div>
  </div>
  <div nz-form-item nz-row>
    <div nz-form-label nz-col [nzSpan]="7">
      <label nz-form-item-required>删除标记</label>
    </div>
    <div nz-col [nzSpan]="12" nz-form-control [nzValidateStatus]="filterForm.controls.code" nzHasFeedback>
      <nz-input
        formControlName="flag"
        [nzType]="'text'"
        [nzPlaceHolder]="'删除标记'"
        [ngModel]="entity.flag"
        [nzSize]="'large'">
      </nz-input>
      <div nz-form-explain *ngIf="filterForm.controls.flag.dirty&&filterForm.controls.flag.hasError('required')">Please
        input your flag!
      </div>
    </div>
  </div>
  <div nz-form-item nz-row>
    <div nz-form-label nz-col [nzSpan]="7">
      <label nz-form-item-required>删除人</label>
    </div>
    <div nz-col [nzSpan]="12" nz-form-control [nzValidateStatus]="filterForm.controls.code" nzHasFeedback>
      <nz-input
        formControlName="deleteBy"
        [nzType]="'text'"
        [nzPlaceHolder]="'删除人'"
        [ngModel]="entity.deleteBy"
        [nzSize]="'large'">
      </nz-input>
      <div nz-form-explain
           *ngIf="filterForm.controls.deleteBy.dirty&&filterForm.controls.deleteBy.hasError('required')">Please
        input your deleteBy!
      </div>
    </div>
  </div>
  <div nz-form-item nz-row>
    <div nz-form-label nz-col [nzSpan]="7">
      <label nz-form-item-required>删除时间</label>
    </div>
    <div nz-col [nzSpan]="12" nz-form-control [nzValidateStatus]="filterForm.controls.code" nzHasFeedback>
      <nz-input
        formControlName="deleteDate"
        [nzType]="'text'"
        [nzPlaceHolder]="'删除时间'"
        [ngModel]="entity.deleteDate"
        [nzSize]="'large'">
      </nz-input>
      <div nz-form-explain
           *ngIf="filterForm.controls.deleteDate.dirty&&filterForm.controls.deleteDate.hasError('required')">Please
        input your deleteDate!
      </div>
    </div>
  </div>
  <div nz-form-item nz-row>
    <div nz-form-label nz-col [nzSpan]="7">
      <label nz-form-item-required>是否已经执行审计日志</label>
    </div>
    <div nz-col [nzSpan]="12" nz-form-control [nzValidateStatus]="filterForm.controls.code" nzHasFeedback>
      <nz-input
        formControlName="islog"
        [nzType]="'text'"
        [nzPlaceHolder]="'是否已经执行审计日志'"
        [ngModel]="entity.islog"
        [nzSize]="'large'">
      </nz-input>
      <div nz-form-explain *ngIf="filterForm.controls.islog.dirty&&filterForm.controls.islog.hasError('required')">
        Please
        input your islog!
      </div>
    </div>
  </div>
  <div nz-form-item nz-row>
    <div nz-form-label nz-col [nzSpan]="7">
      <label nz-form-item-required>子系统</label>
    </div>
    <div nz-col [nzSpan]="12" nz-form-control [nzValidateStatus]="filterForm.controls.code" nzHasFeedback>
      <nz-input
        formControlName="subSystem"
        [nzType]="'text'"
        [nzPlaceHolder]="'子系统'"
        [ngModel]="entity.subSystem"
        [nzSize]="'large'">
      </nz-input>
      <div nz-form-explain
           *ngIf="filterForm.controls.subSystem.dirty&&filterForm.controls.subSystem.hasError('required')">Please
        input your subSystem!
      </div>
    </div>
  </div>
  <div nz-form-item nz-row>
    <div nz-form-label nz-col [nzSpan]="7">
      <label nz-form-item-required>ATTRIBUTE1</label>
    </div>
    <div nz-col [nzSpan]="12" nz-form-control [nzValidateStatus]="filterForm.controls.code" nzHasFeedback>
      <nz-input
        formControlName="attribute1"
        [nzType]="'text'"
        [nzPlaceHolder]="'ATTRIBUTE1'"
        [ngModel]="entity.attribute1"
        [nzSize]="'large'">
      </nz-input>
      <div nz-form-explain
           *ngIf="filterForm.controls.attribute1.dirty&&filterForm.controls.attribute1.hasError('required')">Please
        input your attribute1!
      </div>
    </div>
  </div>
  <div nz-form-item nz-row>
    <div nz-form-label nz-col [nzSpan]="7">
      <label nz-form-item-required>ATTRIBUTE2</label>
    </div>
    <div nz-col [nzSpan]="12" nz-form-control [nzValidateStatus]="filterForm.controls.code" nzHasFeedback>
      <nz-input
        formControlName="attribute2"
        [nzType]="'text'"
        [nzPlaceHolder]="'ATTRIBUTE2'"
        [ngModel]="entity.attribute2"
        [nzSize]="'large'">
      </nz-input>
      <div nz-form-explain
           *ngIf="filterForm.controls.attribute2.dirty&&filterForm.controls.attribute2.hasError('required')">Please
        input your attribute2!
      </div>
    </div>
  </div>
  <div nz-form-item nz-row>
    <div nz-form-label nz-col [nzSpan]="7">
      <label nz-form-item-required>ATTRIBUTE3</label>
    </div>
    <div nz-col [nzSpan]="12" nz-form-control [nzValidateStatus]="filterForm.controls.code" nzHasFeedback>
      <nz-input
        formControlName="attribute3"
        [nzType]="'text'"
        [nzPlaceHolder]="'ATTRIBUTE3'"
        [ngModel]="entity.attribute3"
        [nzSize]="'large'">
      </nz-input>
      <div nz-form-explain
           *ngIf="filterForm.controls.attribute3.dirty&&filterForm.controls.attribute3.hasError('required')">Please
        input your attribute3!
      </div>
    </div>
  </div>
  <div nz-form-item nz-row>
    <div nz-form-label nz-col [nzSpan]="7">
      <label nz-form-item-required>ATTRIBUTE4</label>
    </div>
    <div nz-col [nzSpan]="12" nz-form-control [nzValidateStatus]="filterForm.controls.code" nzHasFeedback>
      <nz-input
        formControlName="attribute4"
        [nzType]="'text'"
        [nzPlaceHolder]="'ATTRIBUTE4'"
        [ngModel]="entity.attribute4"
        [nzSize]="'large'">
      </nz-input>
      <div nz-form-explain
           *ngIf="filterForm.controls.attribute4.dirty&&filterForm.controls.attribute4.hasError('required')">Please
        input your attribute4!
      </div>
    </div>
  </div>
  <div nz-form-item nz-row>
    <div nz-form-label nz-col [nzSpan]="7">
      <label nz-form-item-required>ATTRIBUTE5</label>
    </div>
    <div nz-col [nzSpan]="12" nz-form-control [nzValidateStatus]="filterForm.controls.code" nzHasFeedback>
      <nz-input
        formControlName="attribute5"
        [nzType]="'text'"
        [nzPlaceHolder]="'ATTRIBUTE5'"
        [ngModel]="entity.attribute5"
        [nzSize]="'large'">
      </nz-input>
      <div nz-form-explain
           *ngIf="filterForm.controls.attribute5.dirty&&filterForm.controls.attribute5.hasError('required')">Please
        input your attribute5!
      </div>
    </div>
  </div>
  <div nz-form-item nz-row>
    <div nz-form-label nz-col [nzSpan]="7">
      <label nz-form-item-required>扩展字段结构类型</label>
    </div>
    <div nz-col [nzSpan]="12" nz-form-control [nzValidateStatus]="filterForm.controls.code" nzHasFeedback>
      <nz-input
        formControlName="attributeCategory"
        [nzType]="'text'"
        [nzPlaceHolder]="'扩展字段结构类型'"
        [ngModel]="entity.attributeCategory"
        [nzSize]="'large'">
      </nz-input>
      <div nz-form-explain
           *ngIf="filterForm.controls.attributeCategory.dirty&&filterForm.controls.attributeCategory.hasError('required')">
        Please
        input your attributeCategory!
      </div>
    </div>
  </div>
</form>
<div nz-form-item nz-row>
  <div nz-col [nzOffset]="7" [nzSpan]="12" nz-form-control>
    <button nz-button [nzType]="'primary'" [nzSize]="'large'" [disabled]="!filterForm.valid"
            (click)="onOk.emit({entity:filterForm.value})">Submit
    </button>
    <button nz-button [nzSize]="'large'" (click)="resetForm($event)">resetForm</button>
    <button nz-button [nzSize]="'large'" (click)="onCancel.emit()">onCancel</button>
  </div>
</div>
